package io.github.uicdb.badskill;

import net.minecraft.data.CachedOutput;
import net.minecraft.data.DataGenerator;
import net.minecraft.resources.ResourceLocation;
import org.jetbrains.annotations.NotNull;

import java.util.List;
import java.util.concurrent.CompletableFuture;

public class PageDumper extends SkillPageDataProvider {
    public PageDumper(DataGenerator generator) {
        super(generator, BadSkill.MODID, true);
    }

    @Override
    protected List<CompletableFuture<?>> generate(@NotNull CachedOutput output) {
        return List.of(
                save(add("01")
                                .location(SkillDumper.option0, 0, 0)
                                .location(SkillDumper.option1, -40, 60,8,null,null,SkillDumper.option0)
                                .location(SkillDumper.option2, 30, 80,32,null,null,SkillDumper.option1)
                        .image(new ResourceLocation("textures/gui/book.png"),8,8,64,128)
                                .build(),
                        output
                ),
                save(add("05")
                                .location(SkillDumper.option0, 0, 0)
                                .location(SkillDumper.option1, -40, 60,SkillDumper.option0)
                                .location(SkillDumper.option2, 30, 80,SkillDumper.option1)
                                .build(),
                        output
                )
        );
    }
}
